<?php 

  namespace Admin\Model;
  use \Think\Model;


  class BrandModel extends Model{

  	  protected $fields = ['id','brandname','url','logo'];

  	  protected $_validate = [
	  	  						 ['brandname','require','品牌名不能为空'],
	  	  						 ['brandname','','品牌名重复!',1,'unique'],
	  	  						 ['url','/^((https|http|ftp|rtsp|mms)?:\/\/)+[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/','不是有效的url']
  	  					   ];
  }
